<?php
//var_dump();
class ViewHomeNotice  extends BaseModel
{
	public $res;
	public $redis_key="";
	public function getSource()
		    {
				return "view_home_notice";
    }
	public function initialize()
	{
		parent::initialize();

	} 

	public function get_notice($id){
		$res=$this->findFirst($id)->toArray();
		$material= new Material();
		            //轮播
		$pic=  $material->getListByIds($res['pic']);
		unset($res['id']);
		$res['pic']=$pic[0]['path'];
		return $res;
	}


}
